package realestate.entity;

import realestate.entity.RealEstate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 08.04.11
 * Time: 14:15
 * To change this template use File | Settings | File Templates.
 */
@Table(name = Flat.TABLE_NAME)
@Entity
public class Flat extends RealEstate {


	public static final String TABLE_NAME = "flat";
	public static final String FIELD_ROOMS_COUNT = "rms";

	@Column(name = FIELD_ROOMS_COUNT)
	private byte room_count;


	public byte getRoomCount() {
		return room_count;
	}

	public void setRoomCount(byte room_count) {
		this.room_count = room_count;
	}
}
